package com.gx.project.service;

import com.gx.common.result.ResponseResult;
import com.gx.project.base.domain.BaseDomain;
import com.gx.project.base.service.AbstractBaseService;
import com.gx.project.po.User;
import com.gx.project.domain.UserDomain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author gx
 * @description
 */
@Service("userService")
public class UserServiceImpl extends AbstractBaseService<User,Long> implements UserService {

    @Autowired
    private UserDomain userDomain;



    @Override
    public ResponseResult addUser(String name) {
        userDomain.addUser(name);
        return ResponseResult.successInstance();
    }

    @Override
    protected BaseDomain<User, Long> getBaseDomain() {
        return userDomain;
    }


    @Override
    public Boolean saveOrUpdate(User user) {
        return null;
    }
}
